<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>date</title>
	</head>
	<body>
		<div id="div1"></div>
		<script>
			var date1 = new Date();
			var year = date1.getFullYear();
			var month = date1.getMonth()+1;
			var day = date1.getDate();
			var hour = date1.getHours();
			var minutes = date1.getMinutes();
			var seconds = date1.getSeconds();
			// var div1 = document.getElementById("div1");
			div1.innerHTML = "今天是："+year+"年"+month+"月"+day+"日"+hour+"时"+minutes+"分"+seconds+"秒";
			
		</script>
	</body>
</html>